package com.wtwd.campus.utils;

import com.wtwd.campus.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Component
public class InjectRedisService {
    @Resource
    private RedisService redisService;

    private static InjectRedisService injectService;
    @PostConstruct
    public void init(){
      injectService=this;
    }
    public static RedisService getRedisService(){
        return injectService.redisService;
    }
}
